package net.sudot.chess.business.dto;


import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import net.sudot.chess.business.model.PaymentTransaction;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 支付项
 *
 * @author tangjialin on 2018-03-20.
 */
@Getter
@Setter
@Accessors(chain = true)
public class PaymentItemDTO implements Serializable {
    /** 类型 */
    private PaymentTransaction.Type type;
    /** 支付金额 */
    private BigDecimal amount;
    /** 支付客户 */
    private Long userId;
    /** 订单编号 */
    private String orderSn;
    /**
     * 支付对象,参考支付事务类型
     *
     * @see PaymentTransaction.Type
     */
    private Long target;

}